﻿Imports Microsoft.VisualBasic

Public Class DBProgramSP
    Inherits DBParentStoredProcedureClass

    Public Operation As New TableField("Operation", Data.SqlDbType.NVarChar)
    Public ProgramNo As New TableField("ProgramNo", Data.SqlDbType.NVarChar)
    Public ProgramDescAr As New TableField("ProgramDescAr", Data.SqlDbType.NVarChar)
    Public ProgramDescEn As New TableField("ProgramDescEn", Data.SqlDbType.NVarChar)
    Public Level As New TableField("Level", Data.SqlDbType.Float)
    Public isbranch As New TableField("isbranch", Data.SqlDbType.Float)

    Sub New()
        MyBase.StoredProcedureName = "ProgramSP"
    End Sub

    Public Shadows Function QueryDatabase(ByVal QueryType As SqlQueryType, _
                                 Optional ByVal Operation As String = "", _
                                 Optional ByVal ProgramNo As String = "", _
                                 Optional ByVal ProgramDescAr As String = "", _
                                 Optional ByVal ProgramDescEn As String = "", _
                                 Optional ByVal Level As String = "", _
                                 Optional ByVal isbranch As String = "") As Object

        MyBase.FieldsArrayList = New ArrayList
        Me.Operation.SetValue(Operation, MyBase.FieldsArrayList)
        Me.ProgramNo.SetValue(ProgramNo, MyBase.FieldsArrayList)
        Me.ProgramDescAr.SetValue(ProgramDescAr, MyBase.FieldsArrayList)
        Me.ProgramDescEn.SetValue(ProgramDescEn, MyBase.FieldsArrayList)
        Me.Level.SetValue(Level, MyBase.FieldsArrayList)
        Me.isbranch.SetValue(isbranch, MyBase.FieldsArrayList)

        Return MyBase.QueryDatabase(QueryType)
    End Function

End Class
